import { App } from 'vue';
import mitt from 'mitt';

type Events = {
  headerOffsetHeight: string;
  collapse: boolean;
};

export const emitter = mitt<Events>();

export default function setupMitt(app: App) {
  app.config.globalProperties.$emitter = emitter;
}
